package com.jeejio.train.util;

public interface IConstant {

    // 在 Session 中保存的已登录的用户对象的键值
    String KEY_SESSION_USER = "login_user";

    int SUCCESS = 0;
    int E_DATE_END_BEFORE_START = 2000;

    int E_LOGIN_INVALID_NAME_AND_PWD = 1;
    int E_LOGIN = 1000;

    int E_COURSE_CREATE = 1100;
    int E_COURSE_FIND = 1101;
    int E_COURSE_MODIFY = 1102;
    int E_COURSE_DELETE = 1103;
    int E_COURSE_FIND_HISTORY = 1104;

    int E_ATTACH_FIND_BY_COURSE = 1200;
    int E_ATTACH_UPLOAD_FILE_EMPTY = 1201;
    int E_ATTACH_UPLOAD_RM_COURSE_FILE = 1202;
    int E_ATTACH_UPLOAD_CREATE_COURSE = 1203;
    int E_ATTACH_UPLOAD_FILE = 1204;
    int E_ATTACH_UPLOAD_NO_PERMISSION = 1205;
    int E_ATTACH_DELETE_FILE_NOT_FOUND = 1206;
    int E_ATTACH_DELETE_COURSE_NOT_FOUND = 1207;
    int E_ATTACH_DELETE_NO_PERMISSION = 1208;
    int E_ATTACH_DELETE_FILE_FAILED = 1209;
    int E_ATTACH_DELETE_FAILED = 1210;
}
